<?php

    //  Initialize
    require_once dirname(__FILE__) . '/shared/config/config.php';
    $title = 'Giới Thiệu';
    // End Initialize

    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_about_us.php';

    $about_us = api_about_us::get_about_us();

    require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
?>

<!DOCTYPE html>
<html>
<head>
    <?php
        require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php';
    ?>
</head>
<body>
<div class="uk-container uk-container-center uk-margin-top">
    <?php
        require_once DOCUMENT_ROOT . DIR_INCLUDE . 'menu.php';
        require_once DOCUMENT_ROOT . DIR_INCLUDE . 'slider.php';
    ?>

    <section id="main-content" class="ts-body-container uk-panel uk-panel-box ts-padding-large">
        <article class="uk-article">
            <h1 class="uk-article-title ts-color-primary"><?php echo $about_us['title']; ?></h1>

            <p class="uk-article-meta">Ngày viết: <?php echo date('d-m-Y', strtotime($about_us['date'])); ?></p>

            <hr class="uk-article-divider">
            <div>
                <?php echo $about_us['content']; ?>
            </div>
        </article>
    </section>

    <?php
        require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php';
    ?>
</div>
</body>
</html>